home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 May: Tool Chest / Developer CD Series May 1996 (Tool Chest) (Apple Computer) (1996).iso / Sample Code / SCSI Samples 1.0 / SCSI Find Devices 06⁄15 ƒ / MakeFile next >
Encoding:
Makefile  |  1994-06-16  |  2.6 KB  |  109 lines  |  [TEXT/MPS ]

  1. #
  2. # SCSI Simple Sample
  3. # Copyright © 1993-94, Apple Computer Inc.
  4. # All rights reserved.
  5. #
  6. # Note: this requires the Macintosh on Risc Toolkit. It builds
  7. # a "fat" binary that runs native on both PowerMacintosh and on
  8. # the Motorolo 680x0 processors.
  9. #
  10. # NOTE: as of this writing, the Power Mac headers do not support
  11. # the _SCSIAtomic trap. The PPCC part of the build will therefore
  12. # fail. The program does, however, run on Power Mac in emulation.
  13. #
  14. #
  15. Src                    =    ":Src:"
  16. Obj                    =    ":Obj:"
  17. M68Objects                =                    ∂
  18.         {Obj}SCSIFindDevicesMain.c.mo        ∂
  19.         {Obj}SCSIFindNextDevice.c.mo
  20.  
  21. PPCObjects                =                    ∂
  22.         {Obj}SCSIFindDevicesMain.c.po        ∂
  23.         {Obj}SCSIFindNextDevice.c.po
  24.  
  25.  
  26. #
  27. # Directory dependencies. "Everything in the {Obj} directory depends on something
  28. # in the {Src} directory." Note: you can throw away the contents of the {Obj}
  29. # directory if you want to rebuild from scratch.
  30. #
  31. {Obj}            ƒ    {Src}
  32.  
  33. #
  34. # Compiler dependencies -- common to all compilations The idea here is that all
  35. # sources are stored in the {Src} subdirectory, and all objects and code resources
  36. # output by the linker or Rez are stored in the {Obj} subdirectory.
  37. #
  38. .c.mo ƒ .c                                    ∂
  39.         {Src}SCSI.h                            ∂
  40.         {Src}SCSIFindDevices.h
  41.     C {COptions}                            ∂
  42.         -o {TargDir}{Default}.c.mo            ∂
  43.         {DepDir}{Default}.c
  44.  
  45. .c.po ƒ .c                                    ∂
  46.         {Src}SCSI.h                            ∂
  47.         {Src}SCSIFindDevices.h
  48.     PPCC -sym on -appleext on -w off -d MPW    ∂
  49.         -o {TargDir}{Default}.c.po            ∂
  50.         {DepDir}{Default}.c
  51.  
  52.  
  53. #
  54. # Build the application.
  55. #
  56. "SCSI Find Devices MPW" ƒƒ                    ∂
  57.         MakeFile                            ∂
  58.         {M68Objects}
  59.     Link                                    ∂
  60.         -t APPL                                ∂
  61.         {M68Objects}                        ∂
  62.         "{CLibraries}"StdCLib.o                ∂
  63.         "{Libraries}"Runtime.o                ∂
  64.         "{Libraries}"Interface.o            ∂
  65.         -o {targ}
  66.  
  67.  
  68. "SCSI Find Devices Fat" ƒƒ                    ∂
  69.         MakeFile                            ∂
  70.         {Src}SCSIFindDevices.r
  71.     Rez                                        ∂
  72.         {Src}SCSIFindDevices.r                ∂
  73.         -append                                ∂
  74.         -t APPL                                ∂
  75.         -i "{CIncludes}"                    ∂
  76.         -i "{RIncludes}"                    ∂
  77.         -o {targ}
  78.  
  79. "SCSI Find Devices Fat" ƒƒ                    ∂
  80.         MakeFile                            ∂
  81.         {M68Objects}
  82.     Link                                    ∂
  83.         -t APPL                                ∂
  84.         {M68Objects}                        ∂
  85.         "{CLibraries}"StdCLib.o                ∂
  86.         "{Libraries}"Runtime.o                ∂
  87.         "{Libraries}"Interface.o            ∂
  88.         -o {targ}
  89.  
  90. "SCSI Find Devices Fat" ƒƒ                    ∂
  91.         "{Obj}SCSIFindDevices.xcoff"
  92.     MakePEF                                    ∂
  93.         {deps}                                ∂
  94.         -l InterfaceLib.xcoff=InterfaceLib    ∂
  95.         -l StdCLib.xcoff=StdCLib            ∂
  96.         -o {targ}                            ∂
  97.         -ft APPL -fc '????'
  98.  
  99. "{Obj}SCSIFindDevices.xcoff" ƒ                ∂
  100.         MakeFile                            ∂
  101.         {PPCObjects}
  102.     PPCLink                                    ∂
  103.         {PPCObjects}                        ∂
  104.         "{PPCLibraries}"StdCLib.xcoff        ∂
  105.         "{PPCLibraries}"InterfaceLib.xcoff    ∂
  106.         "{PPCLibraries}"PPCCRuntime.o        ∂
  107.         -main main ∂
  108.         -o {targ}
  109.